package com.tencent.miniproject;

import android.app.Application;
import android.content.Context;

import com.tencent.miniproject.constants.Constant;

public class MiniApplication extends Application {

    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        Constant.COOKIE = getSharedPreferences("appBase", MODE_PRIVATE).getString("cookie", "");
        mContext = getApplicationContext();
    }

    public static Context getContext(){
        return mContext;
    }
}
